module.exports = class BufferReader {
  constructor(buf) {
    this.offset = 0;
    this.buf = buf;
  }
  read(length) {
    let _buf = this.buf.subarray(this.offset, this.offset + length);
    this.offset += length;
    return _buf;
  }
}
